
import * as events from 'events';

export class Event extends events.EventEmitter {

  private static single: Event | undefined;

  private constructor() {
    super();
  }

  static getSingle() {
    if (!this.single) {
      this.single = new Event();
    }
    return this.single;
  }
}